/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package obj;

import dao.DBConnectionManager;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Administrator
 */
public class CommonDb {
    /*public static DBConnectionManager dcm;
    public static Connection	conn;
    public static Statement stmt;*/
public  DBConnectionManager dcm;
public  Connection	conn;
public  Statement stmt;
    public CommonDb() {
        dcm = new DBConnectionManager();
            conn = dcm.getConnection();
        try {
            stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
        } catch (SQLException ex) {
            Logger.getLogger(CommonDb.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
            

}
